import { RoutesAlias } from '@/router/routesAlias'
import { AppRouteRecord } from '@/types/router'

const meta = {}

const pre = 'nengYuanGuanLi/nengYuanKeShiHua-'

export default {
  path: '/nengYuanGuanLi',
  name: 'nengYuanGuanLi',
  redirect: {
    name: `${pre}nengYuanKeShiHua`
  },
  meta: { ...meta, title: '能源管理' },
  component: RoutesAlias.Home,
  children: [
    {
      path: 'nengYuanKeShiHua',
      name: '21100',
      meta: {
        ...meta,
        title: '能源可视化'
      }
      // component: () => import('@/pages/nengYuanGuanLi/nengYuanKeShiHua')
    },
    {
      path: 'dianLiangJianShi',
      name: '21200',
      meta: {
        ...meta,
        title: '电量监视'
      }
      // component: () => import('@/pages/nengYuanGuanLi/dianLiangJianShi')
    },
    {
      path: 'qiLiuJianShi',
      name: '21300',
      meta: {
        ...meta,
        title: '气流监视'
      }
      // component: () => import('@/pages/nengYuanGuanLi/qiLiuJianShi')
    },
    {
      path: 'nengHaoTongJi',
      name: '21400',
      meta: {
        ...meta,
        title: '能耗统计'
      }
      // component: () => import('@/pages/nengYuanGuanLi/nengHaoTongJi')
    },
    {
      path: 'canPingDanHao',
      name: '21500',
      meta: {
        ...meta,
        title: '产品单耗'
      }
      // component: () => import('@/pages/nengYuanGuanLi/canPingDanHao')
    },
    {
      path: 'zongHeGaiLan',
      name: '22000',
      meta: {
        ...meta,
        title: '综合概览'
      }
      // component: () => import('@/pages/nengYuanGuanLi/zongHeGaiLan')
    }
  ]
} as AppRouteRecord
